// 1.引入
import { createRouter, createWebHashHistory } from "vue-router";

// 2.注册
import Home from '../components/Home.vue'
import About from '../components/About.vue'
import errorPage from '../components/404.vue'

const routes = [
    { path: '/', component: Home },
    { path: '/about', component: About },
]

// 3.导出
const router = createRouter({
    history: createWebHashHistory(),
    routes
})
export { router }